<?php

namespace app\api\controller;

use app\api\model\Member;
use app\common\controller\Frontend;

class VipOrder extends Frontend
{
    protected array $noNeedLogin = [];


    public function initialize(): void
    {
        parent::initialize();
    }



    /**
     * 购买会员卡订单
     * @throws Throwable
     */
    public function getVipCardOrderList()
    {
        return json((new \app\api\model\VipOrder())->getVipCardOrderList($this->request_array));
    }




    /**
     * 购买会员卡订单
     * @throws Throwable
     */
    public function getVipCardOrderDetail()
    {
        return json((new \app\api\model\VipOrder())->getVipCardOrderDetail($this->request_array));
    }



    /**
     * 取消订单
     * @throws Throwable
     */
    public function canelVipCard()
    {
        return json((new \app\api\model\VipOrder())->canelVipCard($this->request_array));
    }


    /**
     * 确认收货
     * @throws Throwable
     */
    public function confirmVipCard()
    {
        return json((new \app\api\model\VipOrder())->confirmVipCard($this->request_array));
    }


    /**
     * 获取升级记录
     * @throws Throwable
     */
    public function getVipUpgradeRecord(){
        return json((new \app\api\model\VipUpgrade())->getVipUpgradeRecord($this->request_array));
    }




}
